<template>
	<div id="" class="home-mod">
		<ul class="home-mod-ul">
			<li v-for="(items , key , value) in homeMod" >
				<i :class="setClass(key)" :style="{'background-image':'url('+items.Url+')'}"></i>
				<div id="">
					<span id="" class="home-mod-spa">
						{{items.spa}}
					</span>
					<p class="home-mod-p">{{items.p}}</p>
				</div>
			</li>
		</ul>
	</div>
</template>
<script>
	export default{
		props:{
			homeMod:Array
		},
//		data(){
//			return{
//				mes:[
//					{
//						id:"001",
//						spa:"价格公正",
//						p:"价格公开透明，请安心购买",
//						Url:"https://pic5.40017.cn/01/000/5f/b5/rBLkBlqo1SmAXKh2AAATQxd5x9Q718.png"
//					},
//					{
//						id:"002",
//						spa:"产品丰富",
//						p:"出行产品，全品类覆盖，一站式服务",
//						Url:"https://pic5.40017.cn/01/000/5f/b5/rBLkBlqo1SmAXKh2AAATQxd5x9Q718.png"
//					},
//					{
//						id:"003",
//						spa:"品质保证",
//						p:"精挑细选，产品优选，放心出行",
//						Url:"https://pic5.40017.cn/01/000/5f/b5/rBLkBlqo1SmAXKh2AAATQxd5x9Q718.png"
//					},
//					{
//						id:"004",
//						spa:"专业顾问",
//						p:"24小时专业客服，一对一服务",
//						Url:"https://pic5.40017.cn/01/000/5f/b5/rBLkBlqo1SmAXKh2AAATQxd5x9Q718.png"
//					}
//			
//				]
//			}
//		},
		methods:{
			setClass:function(key){
				return "home-mod-i-"+key
				
			}
		}
	}
</script>
<style lang="stylus" scoped="scoped">
.home-mod
	border-top:.2rem solid rgba(50,50,50,.033)
	margin-top:.3rem
	.home-mod-ul
		margin:.5rem 0 .2rem .7rem
		li	
			display:flex;
			color:#9f8a70;
			i
				width:.9rem;
				height:1rem;
				display: inline-block;
				background-repeat: no-repeat;
				margin-right:.3rem;
				margin-bottom:.2rem
				background-size: 3.97333rem 2.82667rem;
			.home-mod-i-0
				background-position: -.13333rem -1.86667rem;
			.home-mod-i-1
				background-position: -1.09333rem -1.86667rem
			.home-mod-i-2
				background-position: -2.05333rem -1.86667rem;
			.home-mod-i-3
				background-position: -3.01333rem -1.86667rem;
			>div
				vertical-align:center ;
				position:relative
				.home-mod-spa
					position:relative
					font-size:16px
					top:.12rem;
					left:0
				.home-mod-p
					font-size:12px
					padding:.2rem 0 0 0
</style>